.class public Lcom/example/m6shop/CxListActivity;
.super Landroid/app/Activity;
.source "CxListActivity.java"

# interfaces
.implements Lorg/com/cctest/view/XListView$IXListViewListener;


# static fields
.field public static h:Landroid/os/Handler;

.field private static page:I

.field private static pagesize:I


# instance fields
.field private final TAG:Ljava/lang/String;

.field adapter:Ladapter/NotesAdapter;

.field private back:Landroid/widget/ImageView;

.field private bt:Landroid/widget/Button;

.field controltype:Ljava/lang/String;

.field id:Ljava/lang/String;

.field private is_loading:Z

.field private items:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field list:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field m:Lmyapp/MyApp;

.field private mAdapter:Landroid/widget/ArrayAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/widget/ArrayAdapter",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mListView:Lorg/com/cctest/view/XListView;

.field private mcontext:Landroid/content/Context;

.field public message:Ljava/lang/String;

.field name:Ljava/lang/String;

.field orderls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private start:I

.field private tv:Landroid/widget/TextView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 76
    const/4 v0, 0x1

    sput v0, Lcom/example/m6shop/CxListActivity;->page:I

    .line 77
    const/16 v0, 0xa

    sput v0, Lcom/example/m6shop/CxListActivity;->pagesize:I

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 58
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 61
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->m:Lmyapp/MyApp;

    .line 62
    iput-boolean v1, p0, Lcom/example/m6shop/CxListActivity;->is_loading:Z

    .line 63
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->message:Ljava/lang/String;

    .line 67
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->controltype:Ljava/lang/String;

    .line 70
    const-string v0, "CxListActivity"

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->TAG:Ljava/lang/String;

    .line 73
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->items:Ljava/util/ArrayList;

    .line 75
    iput v1, p0, Lcom/example/m6shop/CxListActivity;->start:I

    .line 58
    return-void
.end method

.method private INIgetorder()V
    .locals 1

    .prologue
    .line 257
    const v0, 0x7f070287

    invoke-virtual {p0, v0}, Lcom/example/m6shop/CxListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->bt:Landroid/widget/Button;

    .line 258
    const v0, 0x7f070288

    invoke-virtual {p0, v0}, Lcom/example/m6shop/CxListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lorg/com/cctest/view/XListView;

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    .line 259
    const v0, 0x7f0700cb

    invoke-virtual {p0, v0}, Lcom/example/m6shop/CxListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->back:Landroid/widget/ImageView;

    .line 260
    const v0, 0x7f070286

    invoke-virtual {p0, v0}, Lcom/example/m6shop/CxListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6shop/CxListActivity;->tv:Landroid/widget/TextView;

    .line 261
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/CxListActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6shop/CxListActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1()I
    .locals 1

    .prologue
    .line 76
    sget v0, Lcom/example/m6shop/CxListActivity;->page:I

    return v0
.end method

.method static synthetic access$2(Lcom/example/m6shop/CxListActivity;)Lorg/com/cctest/view/XListView;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    return-object v0
.end method

.method static synthetic access$3()I
    .locals 1

    .prologue
    .line 77
    sget v0, Lcom/example/m6shop/CxListActivity;->pagesize:I

    return v0
.end method

.method static synthetic access$4(Lcom/example/m6shop/CxListActivity;)V
    .locals 0

    .prologue
    .line 376
    invoke-direct {p0}, Lcom/example/m6shop/CxListActivity;->onLoad()V

    return-void
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 377
    iget-object v0, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    invoke-virtual {v0}, Lorg/com/cctest/view/XListView;->stopRefresh()V

    .line 378
    iget-object v0, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    invoke-virtual {v0}, Lorg/com/cctest/view/XListView;->stopLoadMore()V

    .line 379
    iget-object v0, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    invoke-virtual {p0}, Lcom/example/m6shop/CxListActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/com/cctest/view/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 380
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6shop/CxListActivity;->is_loading:Z

    .line 381
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3

    .prologue
    .line 383
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 384
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 383
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 385
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 386
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public deletegoods()Z
    .locals 1

    .prologue
    .line 429
    new-instance v0, Lcom/example/m6shop/CxListActivity$7;

    invoke-direct {v0, p0}, Lcom/example/m6shop/CxListActivity$7;-><init>(Lcom/example/m6shop/CxListActivity;)V

    .line 495
    invoke-virtual {v0}, Lcom/example/m6shop/CxListActivity$7;->start()V

    .line 496
    const/4 v0, 0x0

    return v0
.end method

.method public getSource()Z
    .locals 1

    .prologue
    .line 266
    new-instance v0, Lcom/example/m6shop/CxListActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6shop/CxListActivity$4;-><init>(Lcom/example/m6shop/CxListActivity;)V

    .line 369
    invoke-virtual {v0}, Lcom/example/m6shop/CxListActivity$4;->start()V

    .line 370
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 84
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 85
    const v1, 0x7f030061

    invoke-virtual {p0, v1}, Lcom/example/m6shop/CxListActivity;->setContentView(I)V

    .line 87
    new-instance v1, Lmyapp/MyApp;

    invoke-direct {v1}, Lmyapp/MyApp;-><init>()V

    iput-object v1, p0, Lcom/example/m6shop/CxListActivity;->m:Lmyapp/MyApp;

    .line 88
    iput-object p0, p0, Lcom/example/m6shop/CxListActivity;->mcontext:Landroid/content/Context;

    .line 90
    invoke-direct {p0}, Lcom/example/m6shop/CxListActivity;->INIgetorder()V

    .line 92
    invoke-virtual {p0}, Lcom/example/m6shop/CxListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 93
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "controltype"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/CxListActivity;->controltype:Ljava/lang/String;

    .line 94
    const-string v1, "name"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/CxListActivity;->name:Ljava/lang/String;

    .line 96
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->name:Ljava/lang/String;

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 97
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->tv:Landroid/widget/TextView;

    const-string v2, "\u9001\u8d60\u54c1"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 100
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->name:Ljava/lang/String;

    const-string v2, "3"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 101
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->tv:Landroid/widget/TextView;

    const-string v2, "\u6298\u6263"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 102
    :cond_1
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->name:Ljava/lang/String;

    const-string v2, "4"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 103
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->tv:Landroid/widget/TextView;

    const-string v2, "\u514d\u8d39\u914d\u9001"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 105
    :cond_2
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/example/m6shop/CxListActivity;->list:Ljava/util/List;

    .line 106
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/example/m6shop/CxListActivity;->orderls:Ljava/util/List;

    .line 111
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lorg/com/cctest/view/XListView;->setPullLoadEnable(Z)V

    .line 112
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    invoke-virtual {v1, p0}, Lorg/com/cctest/view/XListView;->setXListViewListener(Lorg/com/cctest/view/XListView$IXListViewListener;)V

    .line 114
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->bt:Landroid/widget/Button;

    new-instance v2, Lcom/example/m6shop/CxListActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6shop/CxListActivity$1;-><init>(Lcom/example/m6shop/CxListActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 128
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->back:Landroid/widget/ImageView;

    new-instance v2, Lcom/example/m6shop/CxListActivity$2;

    invoke-direct {v2, p0}, Lcom/example/m6shop/CxListActivity$2;-><init>(Lcom/example/m6shop/CxListActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 138
    new-instance v1, Lcom/example/m6shop/CxListActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6shop/CxListActivity$3;-><init>(Lcom/example/m6shop/CxListActivity;)V

    sput-object v1, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    .line 244
    invoke-direct {p0}, Lcom/example/m6shop/CxListActivity;->INIgetorder()V

    .line 246
    return-void

    .line 98
    :cond_3
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->name:Ljava/lang/String;

    const-string v2, "2"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 99
    iget-object v1, p0, Lcom/example/m6shop/CxListActivity;->tv:Landroid/widget/TextView;

    const-string v2, "\u51cf\u8d39\u7528"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 410
    iget-boolean v0, p0, Lcom/example/m6shop/CxListActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 411
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6shop/CxListActivity;->is_loading:Z

    .line 412
    sget v0, Lcom/example/m6shop/CxListActivity;->page:I

    add-int/lit8 v0, v0, 0x1

    sput v0, Lcom/example/m6shop/CxListActivity;->page:I

    .line 414
    sget-object v0, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6shop/CxListActivity$6;

    invoke-direct {v1, p0}, Lcom/example/m6shop/CxListActivity$6;-><init>(Lcom/example/m6shop/CxListActivity;)V

    .line 420
    const-wide/16 v2, 0x7d0

    .line 414
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 423
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 392
    iget-boolean v0, p0, Lcom/example/m6shop/CxListActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 393
    iput-boolean v1, p0, Lcom/example/m6shop/CxListActivity;->is_loading:Z

    .line 394
    sput v1, Lcom/example/m6shop/CxListActivity;->page:I

    .line 395
    iget-object v0, p0, Lcom/example/m6shop/CxListActivity;->mListView:Lorg/com/cctest/view/XListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lorg/com/cctest/view/XListView;->setPullLoadEnable(Z)V

    .line 397
    sget-object v0, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6shop/CxListActivity$5;

    invoke-direct {v1, p0}, Lcom/example/m6shop/CxListActivity$5;-><init>(Lcom/example/m6shop/CxListActivity;)V

    .line 404
    const-wide/16 v2, 0x7d0

    .line 397
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 406
    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 1

    .prologue
    .line 251
    const/4 v0, 0x1

    sput v0, Lcom/example/m6shop/CxListActivity;->page:I

    .line 252
    invoke-virtual {p0}, Lcom/example/m6shop/CxListActivity;->getSource()Z

    .line 253
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 254
    return-void
.end method
